package InterviewPractise.collection;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 * User: Richard
 * Date: 7/28/11
 * Time: 11:40 AM
 * To change this template use File | Settings | File Templates.
 */
public class ForSet {
    private Set<Integer> set = new HashSet<Integer>();

    public static  void main(String[] args){
        ForSet setTest = new ForSet();
        for(int i =0 ; i <10 ;i++){
           setTest.getSet().add(i);
        }

        for(int i =0 ; i <100 ;i++)  {
            System.out.println("============="+i+"================");
           for(Integer integer : setTest.getSet()){
             System.out.print(integer);
                System.out.print(";");
            }
            System.out.println("==");
        }

    }

    public Set<Integer> getSet() {
        return set;
    }

    public void setSet(Set<Integer> set) {
        this.set = set;
    }
}
